import HttpHandler from "@/handler/HttpHandler";

export default class unitGroupApi {
    constructor() {
        this.http = new HttpHandler();
    }

    // 获取列表
    queryListPage(data) {
        let url = '/tie-mdm/measureunitgroup/queryListPage';
        return this.http.get(url, data);
    }
    // 新增
    add(data) {
        let url = '/tie-mdm/measureunitgroup/add';
        return this.http.post(url, data);
    }
    // 修改
    update(data) {
        let url = '/tie-mdm/measureunitgroup/update';
        return this.http.post(url, data);
    }
    // 详情
    detail(data) {
        let url = '/tie-mdm/measureunitgroup/queryDetail';
        return this.http.get(url, data);
    }
   // 获取分组树列表
    queryGroupTree(data) {
        let url = '/tie-mdm/measureunitgroup/queryGroupTree';
        return this.http.get(url, data);
    }
    // 禁用启用
    changeStatus(data) {
        let url = '/tie-mdm/measureunitgroup/changeStatus';
        return this.http.get(url, data);
    }
    // 删除
    delete(data) {
        let url = '/tie-mdm/measureunitgroup/delete';
        return this.http.get(url, data);
    }
    

}
